import request from '@/utils/request'
import * as url from 'url'

export function addlost(data) {
  return request({
    url: '/prop/add',
    method: 'post',
    data
  })
}

export function claim(studentId, propId) {
  return request({
    url: '/claim',
    method: 'post',
    data: { studentId, propId }
  })
}
export function updatelost(data) {
  return request({
    url: '/prop/update',
    method: 'put',
    data
  })
}

export function uploadPic(data) {
  return request({
    url: '/upload/prop',
    method: 'post',
    data
  })
}

export function deleteProp(propId) {
  return request({
    url: `/prop/delete/${propId}`,
    method: 'delete'
  })
}
